package com.vonchange.headb.core.constant;


/**
 *常量
 * @author von_change@163.com
 * @date 2015-6-14 下午12:46:28
 */
public class HeaConstant {

	public static class Entity {
		public static final Integer UUID = 0;
		public static final Integer INCID = 1;
		public static final Integer UNAUTO = -1;
	}

	// 指令
	public static class Instruction {
		public static final String ADDSELECT = "addSelect";// 挑取的字段
		public static final String ADDORDER = "addOrder";// 添加排序
		public static final String ADDGROUP = "addGroup";// 添加排序
		public static final String ADDBEGINNUM = "addBeginNum";// 开始条数
		public static final String ADDENDNUM = "addEndNum";// 结束条数
	}

	public static class CharToNum {
		public static final String[] CHAR = new String[] { "QQ","WW","EE", "RR","TT", "YY","UU","II","OO", "PP" };
		public static final String[] NUM = new String[] { "1","2", "3","4", "5", "6","7","8","9", "0" };//
	}

	public static class NumToSymbol {
		public static final String[] NUMS = new String[] { "1", "3", "5", "__", "9", "0" };//8换成__
		public static final String[] NUMREPLACE = new String[] { "|", "#", "%", ".", "(", ")" };
	}

	public static class ColumnOrder {
		public static final Integer COLUMN = 1;
		public static final Integer ORDER = 2;
		public static final Integer GROUP = 3;
	}

	public static final String DIANINALIAS = "__";// sql别名里的点
	public static final String SQLFLAG = "_sql";
	public static final String TABLEFLAG = "t.";
	public static final String SPACE = "\u0020";
	public static final char SPACECHAR = '\u0020';
	public static final String TAPESPT = "#";
	public static final String MYSPACE = "_";// 原先:改为_ 空格意义明确 并不和占位符冲突
												// sql使用hql方式也名正言顺
	public static final char MYSPACECHAR = '_';
	//public static final String EX = "ex";
	public static final String NULLStr = "null";
	public static final String RX = "rx";// 任性 就是查询
	public static final String CK = "ck";// check 检查值为空或者""
	
}
